# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_pkgname=svgwrite
pkgname="py3-$_pkgname"
pkgver=1.4.1
pkgrel=2
pkgdesc="Python library to create SVG drawings"
url="https://github.com/mozman/svgwrite"
arch="noarch"
license="MIT"
depends="
	py3-parsing
"
makedepends="py3-setuptools_scm"
checkdepends="
	py3-pytest
"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest tests
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
74015ed4a72cd781a577ab8c2f38a30a1f6561ca0379e62ecaac8136f40998c926597d97a0c1006fdab69ac4a23ce1841bda296881ede511f3f1b4a2e8dea06f  py3-svgwrite-1.4.1.tar.gz
"
